﻿
using System;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using XnaColor = Microsoft.Xna.Framework.Color;
using Colonisator.Classes;
namespace ColonisatorGame
{
    public class IleNeutre3InteractionObject : IslandInteractionObject<IleNeutre3, IleNeutre3Anchorage>
    {
        public IleNeutre3InteractionObject(string texturePath, IleNeutre3Anchorage anchorage)
            : base(texturePath, anchorage)
        {

        }

        public override void SetAbsoluteRectangle<MapIntercationObject>(GameHUD hud, MapIntercationObject map)
        {
            this.AbsoluteRectangle = new Rectangle
                (Convert.ToInt32(hud.menuInteractions.Cadre.Width - hud.fenetrePrincipale.Offset.X + 2400),
                 Convert.ToInt32(hud.menuHaut.Cadre.Height - hud.fenetrePrincipale.Offset.Y + 1800),
                 Convert.ToInt32(this.Texture.Width),
                 Convert.ToInt32(this.Texture.Height));
        }
    }
}
